package com.kaishengit.service;


import com.kaishengit.dao.MessageDao;
import com.kaishengit.entity.Message;
import com.kaishengit.util.Page;

public class MessageService {
	
	MessageDao dao = new MessageDao();
	public void save(Message m) {
		new MessageDao().save(m);
	}

	public Page<Message> findByProId(String id,int pageNum) {
		Page<Message> page = new Page<Message>(3,dao.getCount(),pageNum);
		return dao.findByProId(id,page);
	}
	
}
